// source --> https://www.w-jinc.com/wp-content/plugins/cookie-law-info/js/cookielawinfo.js function cli_show_cookiebar(p) { /* plugin version 1.6.3 */ var Cookie = { set: function(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }, read: function(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') { c = c.substring(1,c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length,c.length); } } return null; }, erase: function(name) { this.set(name,"",-1); }, exists: function(name) { return (this.read(name) !== null); } }; var ACCEPT_COOKIE_NAME = 'viewed_cookie_policy', ACCEPT_COOKIE_EXPIRE = 365, json_payload = p.settings; if (typeof JSON.parse !== "function") { console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it"); return; } var settings = JSON.parse(json_payload); var cached_header = jQuery(settings.notify_div_id), cached_showagain_tab = jQuery(settings.showagain_div_id), btn_accept = jQuery('#cookie_hdr_accept'), btn_decline = jQuery('#cookie_hdr_decline'), btn_moreinfo = jQuery('#cookie_hdr_moreinfo'), btn_settings = jQuery('#cookie_hdr_settings'); cached_header.hide(); if ( !settings.showagain_tab ) { cached_showagain_tab.hide(); } var hdr_args = { 'background-color': settings.background, 'color': settings.text, 'font-family': settings.font_family }; if ( settings.notify_position_vertical == "top" ) { if ( settings.header_fix === true ) { hdr_args['position'] = 'fixed'; } hdr_args['top'] = '0'; } else { hdr_args['bottom'] = '0'; } var showagain_args = { 'background-color': settings.background, 'color': l1hs(settings.text), 'position': 'fixed', 'font-family': settings.font_family }; if ( settings.border_on ) { var border_to_hide = 'border-' + settings.notify_position_vertical; showagain_args['border'] = '1px solid ' + l1hs(settings.border); showagain_args[border_to_hide] = 'none'; } if ( settings.notify_position_vertical == "top" ) { if ( settings.border_on ) { hdr_args['border-bottom'] = '4px solid ' + l1hs(settings.border); } showagain_args.top = '0'; } else if ( settings.notify_position_vertical == "bottom" ) { if ( settings.border_on ) { hdr_args['border-top'] = '2px solid ' + l1hs(settings.border); } hdr_args['position'] = 'fixed'; hdr_args['bottom'] = '0'; showagain_args.bottom = '0'; } if ( settings.notify_position_horizontal == "left" ) { showagain_args.left = settings.showagain_x_position; } else if ( settings.notify_position_horizontal == "right" ) { showagain_args.right = settings.showagain_x_position; } cached_header.css( hdr_args ); cached_showagain_tab.css( showagain_args ); if (!Cookie.exists(ACCEPT_COOKIE_NAME)) { displayHeader(); } else { cached_header.hide(); } if ( settings.show_once_yn ) { setTimeout(close_header, settings.show_once); } function close_header() { Cookie.set(ACCEPT_COOKIE_NAME, 'yes', ACCEPT_COOKIE_EXPIRE); hideHeader(); } /////// if ( settings.button_1_as_button ) { var main_button = jQuery('.cli-plugin-main-button'); main_button.css( 'color', settings.button_1_link_colour ); main_button.css('background-color', settings.button_1_button_colour); main_button.hover(function() { jQuery(this).css('background-color', settings.button_1_button_hover); }, function() { jQuery(this).css('background-color', settings.button_1_button_colour); }); } if ( settings.button_3_as_button ) { var main_button = jQuery('.cli-plugin-main-button-reject'); main_button.css('background-color', settings.button_3_button_colour); main_button.hover(function() { jQuery(this).css('background-color', settings.button_3_button_hover); }, function() { jQuery(this).css('background-color', settings.button_3_button_colour); }); } ///////// var main_link = jQuery('.cli-plugin-main-link'); main_link.css( 'color', settings.button_2_link_colour ); if ( settings.button_2_as_button ) { main_link.css('background-color', settings.button_2_button_colour); main_link.hover(function() { jQuery(this).css('background-color', settings.button_2_button_hover); }, function() { jQuery(this).css('background-color', settings.button_2_button_colour); }); } //////////////// var main_link_accept = jQuery('.cli-plugin-main-button'); main_link_accept.css( 'color', settings.button_1_link_colour ); var main_link_reject = jQuery('.cli-plugin-main-button-reject'); main_link_reject.css( 'color', settings.button_3_link_colour ); var main_link = jQuery('#cookie_action_close_header_reject'); // main_link.css( 'color', settings.button_3_link_colour ); if ( settings.button_3_as_button ) { main_link.css('background-color', settings.button_3_button_colour); main_link.hover(function() { jQuery(this).css('background-color', settings.button_3_button_hover); }, function() { jQuery(this).css('background-color', settings.button_3_button_colour); }); } var main_link = jQuery('#cookie_action_open_url_reject'); main_link.css( 'color', settings.button_3_link_colour ); if ( settings.button_3_as_button ) { main_link.css('background-color', settings.button_3_button_colour); main_link.hover(function() { jQuery(this).css('background-color', settings.button_3_button_hover); }, function() { jQuery(this).css('background-color', settings.button_3_button_colour); }); } cached_showagain_tab.click(function(e) { e.preventDefault(); cached_showagain_tab.slideUp(settings.animate_speed_hide, function slideShow() { cached_header.slideDown(settings.animate_speed_show); }); }); jQuery("#cookielawinfo-cookie-delete").click(function() { Cookie.erase(ACCEPT_COOKIE_NAME); return false; }); jQuery(".cookie_action_close_header").click(function(e) { e.preventDefault(); accept_close(); }); jQuery(".cookie_action_open_url_reject ").click(function(e) { reject_close(); }); jQuery(".cookie_action_close_header_reject").click(function(e) { e.preventDefault(); reject_close(); }); function accept_close() { Cookie.set(ACCEPT_COOKIE_NAME, 'yes', ACCEPT_COOKIE_EXPIRE); if (settings.notify_animate_hide) { cached_header.slideUp(settings.animate_speed_hide); } else { cached_header.hide(); } cached_showagain_tab.slideDown(settings.animate_speed_show); if (settings.accept_close_reload === true) { location.reload(); } return false; } function reject_close() { for(var k in Cli_Data.nn_cookie_ids) { Cookie.erase(Cli_Data.nn_cookie_ids[k]); } Cookie.set(ACCEPT_COOKIE_NAME, 'no', ACCEPT_COOKIE_EXPIRE); if (settings.notify_animate_hide) { cached_header.slideUp(settings.animate_speed_hide); } else { cached_header.hide(); } cached_showagain_tab.slideDown(settings.animate_speed_show); return false; } function closeOnScroll() { if (window.pageYOffset > 100 && !Cookie.read(ACCEPT_COOKIE_NAME)) { accept_close(); if (settings.scroll_close_reload === true) { location.reload(); } window.removeEventListener("scroll", closeOnScroll, false); } } if (settings.scroll_close === true) { window.addEventListener("scroll", closeOnScroll, false); } function displayHeader() { if (settings.notify_animate_show) { cached_header.slideDown(settings.animate_speed_show); } else { cached_header.show(); } cached_showagain_tab.hide(); } function hideHeader() { if (settings.notify_animate_show) { cached_showagain_tab.slideDown(settings.animate_speed_show); } else { cached_showagain_tab.show(); } cached_header.slideUp(settings.animate_speed_show); } }; function l1hs(str){if(str.charAt(0)=="#"){str=str.substring(1,str.length);}else{return "#"+str;}return l1hs(str);}; // source --> https://www.w-jinc.com/wp-content/themes/alyeska/framework/frontend/assets/js/prettyphoto.js (function(a){function e(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)";var d=new RegExp(c);var e=d.exec(b);return e==null?"":e[1]}function d(){url=location.href;hashtag=url.indexOf("#!prettyPhoto")?true:false;if(hashtag)location.hash="!prettyPhoto"}function c(){if(typeof theRel=="undefined")return;location.hash="!"+theRel+"/"+rel_index+"/"}function b(){url=location.href;hashtag=url.indexOf("#!")!=-1?decodeURI(url.substring(url.indexOf("#!")+2,url.length)):false;return hashtag}a.prettyPhoto={version:"3.1.3"};a.fn.prettyPhoto=function(f){function B(b){if(settings.social_tools)facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));settings.markup=settings.markup.replace("{pp_social}",settings.social_tools?facebook_like_link:"");a("body").append(settings.markup);$pp_pic_holder=a(".pp_pic_holder"),$ppt=a(".ppt"),$pp_overlay=a("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var c=0;c"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=a(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){a.prettyPhoto.changeGalleryPage("next");a.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){a.prettyPhoto.changeGalleryPage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_gallery_li.each(function(b){a(this).find("a").click(function(){a.prettyPhoto.changePage(b);a.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('Play');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){a.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){if(!settings.modal)a.prettyPhoto.close()});a("a.pp_close").bind("click",function(){a.prettyPhoto.close();return false});a("a.pp_expand").bind("click",function(b){if(a(this).hasClass("pp_expand")){a(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{a(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}s(function(){a.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){a.prettyPhoto.changePage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){a.prettyPhoto.changePage("next");a.prettyPhoto.stopSlideshow();return false});x()}function A(){if(isSet&&settings.overlay_gallery&&w(pp_images[set_position])=="image"&&settings.ie6_fallback&&!(a.browser.msie&&parseInt(a.browser.version)==6)){itemWidth=52+5;navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30;itemsPerPage=Math.floor((i["containerWidth"]-100-navWidth)/itemWidth);itemsPerPage=itemsPerPageo)return;$pp_pic_holder.css({top:projectedTop,left:p/2+scroll_pos["scrollLeft"]-contentwidth/2})}}function w(a){if(a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)){return"youtube"}else if(a.match(/vimeo\.com/i)){return"vimeo"}else if(a.match(/\b.mov\b/i)){return"quicktime"}else if(a.match(/\b.swf\b/i)){return"flash"}else if(a.match(/\biframe=true\b/i)){return"iframe"}else if(a.match(/\bajax=true\b/i)){return"ajax"}else if(a.match(/\bcustom=true\b/i)){return"custom"}else if(a.substr(0,1)=="#"){return"inline"}else{return"image"}}function v(b,c){b=parseFloat(b);c=parseFloat(c);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(b);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;if(a.browser.msie&&a.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(b);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();k=c+detailsHeight;l=b;m=k+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();n=b}function u(a,b){resized=false;v(a,b);imageWidth=a,imageHeight=b;var c=200;if(p<480){c=50}if((n>p||m>o)&&doresize&&settings.allow_resize&&!h){resized=true,fitting=false;while(!fitting){if(n>p){imageWidth=p-c;imageHeight=b/a*imageWidth}else if(m>o){imageHeight=o-c;imageWidth=a/b*imageHeight}else{fitting=true}m=imageHeight,n=imageWidth}v(imageWidth,imageHeight);if(p>480){if(n>p||m>o){u(n,m)}}}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(m),containerWidth:Math.floor(n)+settings.horizontal_padding*2,contentHeight:Math.floor(k),contentWidth:Math.floor(l),resized:resized}}function t(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function s(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show();b()})}function r(){a(".pp_loaderIcon").hide();projectedTop=scroll_pos["scrollTop"]+(o/2-i["containerHeight"]/2);if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:i["contentHeight"],width:i["contentWidth"]},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:p/2-i["containerWidth"]/2,width:i["containerWidth"]},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(i["height"]).width(i["width"]);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&w(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(i["resized"]){a("a.pp_expand,a.pp_contract").show()}else{a("a.pp_expand").hide()}if(settings.autoplay_slideshow&&!q&&!j)a.prettyPhoto.startSlideshow();settings.changepicturecallback();j=true});A()}f=jQuery.extend({animation_speed:"fast",slideshow:5e3,autoplay_slideshow:false,opacity:.8,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
\n\t\t\t\t\t\t
 
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\tExpand \n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\tnext \n\t\t\t\t\t\t\t\t\t\t\tprevious \n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\tPrevious \n\t\t\t\t\t\t\t\t\t\t\t\t

0/0

\n\t\t\t\t\t\t\t\t\t\t\t\tNext \n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t
{pp_social}
\n\t\t\t\t\t\t\t\t\t\t\tClose \n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:"",social_tools:''},f);var g=this,h=false,i,j,k,l,m,n,o=a(window).height(),p=a(window).width(),q;doresize=true,scroll_pos=y();a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x();z()});if(f.keyboard_shortcuts){a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous");b.preventDefault();break;case 39:a.prettyPhoto.changePage("next");b.preventDefault();break;case 27:if(!settings.modal)a.prettyPhoto.close();b.preventDefault();break}}}})}a.prettyPhoto.initialize=function(){settings=f;if(settings.theme=="pp_default")settings.horizontal_padding=16;if(settings.ie6_fallback&&a.browser.msie&&parseInt(a.browser.version)==6)settings.theme="light_square";theRel=a(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;isSet=galleryRegExp.exec(theRel)?true:false;pp_images=isSet?jQuery.map(g,function(b,c){if(a(b).attr("rel").indexOf(theRel)!=-1)return a(b).attr("href")}):a.makeArray(a(this).attr("href"));pp_titles=isSet?jQuery.map(g,function(b,c){if(a(b).attr("rel").indexOf(theRel)!=-1)return a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):""}):a.makeArray(a(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(g,function(b,c){if(a(b).attr("rel").indexOf(theRel)!=-1)return a(b).attr("title")?a(b).attr("title"):""}):a.makeArray(a(this).attr("title"));if(pp_images.length>30)settings.overlay_gallery=false;set_position=jQuery.inArray(a(this).attr("href"),pp_images);rel_index=isSet?set_position:a("a[rel^='"+theRel+"']").index(a(this));B(this);if(settings.allow_resize)a(window).bind("scroll.prettyphoto",function(){x()});a.prettyPhoto.open();return false};a.prettyPhoto.open=function(b){if(typeof settings=="undefined"){settings=f;if(a.browser.msie&&a.browser.version==6)settings.theme="light_square";pp_images=a.makeArray(arguments[0]);pp_titles=arguments[1]?a.makeArray(arguments[1]):a.makeArray("");pp_descriptions=arguments[2]?a.makeArray(arguments[2]):a.makeArray("");isSet=pp_images.length>1?true:false;set_position=0;B(b.target)}if(a.browser.msie&&a.browser.version==6)a("select").css("visibility","hidden");if(settings.hideflash)a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");t(a(pp_images).size());a(".pp_loaderIcon").show();if(settings.deeplinking)c();if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));$pp_pic_holder.find(".pp_social").html(facebook_like_link)}if($ppt.is(":hidden"))$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=parseFloat(e("width",pp_images[set_position]))?e("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(e("height",pp_images[set_position]))?e("height",pp_images[set_position]):settings.default_height.toString();h=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150);h=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150);h=true}$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" ");imgPreloader="";skipInjection=false;switch(w(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position0)movie_id=movie_id.substr(0,movie_id.indexOf("?"));if(movie_id.indexOf("&")>0)movie_id=movie_id.substr(0,movie_id.indexOf("&"))}movie="http://www.youtube.com/embed/"+movie_id;e("rel",pp_images[set_position])?movie+="?rel="+e("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,i["width"]).replace(/{height}/g,i["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":i=u(movie_width,movie_height);movie_id=pp_images[set_position];var b=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var c=movie_id.match(b);movie="http://player.vimeo.com/video/"+c[2]+"?title=0&byline=0&portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=i["width"]+"/embed/?moog_width="+i["width"];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,i["height"]).replace(/{path}/g,movie);break;case"quicktime":i=u(movie_width,movie_height);i["height"]+=15;i["contentHeight"]+=15;i["containerHeight"]+=15;toInject=settings.quicktime_markup.replace(/{width}/g,i["width"]).replace(/{height}/g,i["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":i=u(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,i["width"]).replace(/{height}/g,i["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":i=u(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,i["width"]).replace(/{height}/g,i["height"]).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;i=u(movie_width,movie_height);doresize=true;skipInjection=true;a.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;r()});break;case"custom":i=u(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('
').appendTo(a("body")).show();doresize=false;i=u(a(myClone).width(),a(myClone).height());doresize=true;a(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;r()}});return false};a.prettyPhoto.changePage=function(b){currentGalleryPage=0;if(b=="previous"){set_position--;if(set_position<0)set_position=a(pp_images).size()-1}else if(b=="next"){set_position++;if(set_position>a(pp_images).size()-1)set_position=0}else{set_position=b}rel_index=set_position;if(!doresize)doresize=true;a(".pp_contract").removeClass("pp_contract").addClass("pp_expand");s(function(){a.prettyPhoto.open()})};a.prettyPhoto.changeGalleryPage=function(a){if(a=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(a=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else{currentGalleryPage=a}slide_speed=a=="next"||a=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};a.prettyPhoto.startSlideshow=function(){if(typeof q=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){a.prettyPhoto.stopSlideshow();return false});q=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)}else{a.prettyPhoto.changePage("next")}};a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){a.prettyPhoto.startSlideshow();return false});clearInterval(q);q=undefined};a.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;a.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(a.browser.msie&&a.browser.version==6)a("select").css("visibility","visible");if(settings.hideflash)a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");a(this).remove();a(window).unbind("scroll.prettyphoto");d();settings.callback();doresize=true;j=false;delete settings})};if(!pp_alreadyInitialized&&b()){pp_alreadyInitialized=true;hashIndex=b();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){a("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)};})(jQuery);var pp_alreadyInitialized=false; // source --> https://www.w-jinc.com/wp-content/themes/alyeska/framework/frontend/assets/js/superfish.js /* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$([' »'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl()},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path)}},o.delay)},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone())};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass)});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this))}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li)}).blur(function(){out.call($li)})});o.onInit.call(this)}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '))})};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)this.toggleClass(sf.c.shadowClass+'-off')};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul)});return this}})})(jQuery); // source --> https://www.w-jinc.com/wp-content/themes/alyeska/framework/frontend/assets/js/flexslider-2.js /* * jQuery FlexSlider v2.0 * Copyright 2012 WooThemes * Contributing Author: Tyler Smith */ ;(function(d){d.flexslider=function(h,k){var a=d(h),c=d.extend({},d.flexslider.defaults,k),e=c.namespace,o="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,s=o?"touchend":"click",l="vertical"===c.direction,m=c.reverse,i=0');if(1':""+b+"",a.controlNavScaffold.append("
  • "+g+"
  • "),b++;a.controlsContainer?d(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold);f.controlNav.set();f.controlNav.active();a.controlNavScaffold.delegate("a, img",s,function(b){b.preventDefault();var b=d(this),g=a.controlNav.index(b);b.hasClass(e+"active")||(a.direction=g>a.currentSlide?"next":"prev",a.flexAnimate(g,c.pauseOnAction))});o&&a.controlNavScaffold.delegate("a","click touchstart",function(a){a.preventDefault()})}, setupManual:function(){a.controlNav=a.manualControls;f.controlNav.active();a.controlNav.live(s,function(b){b.preventDefault();var b=d(this),g=a.controlNav.index(b);b.hasClass(e+"active")||(g>a.currentSlide?a.direction="next":a.direction="prev",a.flexAnimate(g,c.pauseOnAction))});o&&a.controlNav.live("click touchstart",function(a){a.preventDefault()})},set:function(){a.controlNav=d("."+e+"control-nav li "+("thumbnails"===c.controlNav?"img":"a"),a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(e+ "active").eq(a.animatingTo).addClass(e+"active")},update:function(b,c){1"+a.count+"")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(c).closest("li").remove();f.controlNav.set();1
  • '+c.prevText+'
  • '+c.nextText+"
  • ");a.controlsContainer?(d(a.controlsContainer).append(b),a.directionNav=d("."+e+"direction-nav li a",a.controlsContainer)):(a.append(b),a.directionNav=d("."+e+"direction-nav li a",a));f.directionNav.update();a.directionNav.bind(s,function(b){b.preventDefault();b=d(this).hasClass(e+"next")?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(b,c.pauseOnAction)});o&&a.directionNav.bind("click touchstart",function(a){a.preventDefault()})},update:function(){var b= e+"disabled";c.animationLoop||(1===a.pagingCount?a.directionNav.addClass(b):0===a.animatingTo?a.directionNav.removeClass(b).filter("."+e+"prev").addClass(b):a.animatingTo===a.last?a.directionNav.removeClass(b).filter("."+e+"next").addClass(b):a.directionNav.removeClass(b))}},pausePlay:{setup:function(){var b=d('
    ');a.controlsContainer?(a.controlsContainer.append(b),a.pausePlay=d("."+e+"pauseplay a",a.controlsContainer)):(a.append(b),a.pausePlay=d("."+e+"pauseplay a", a));f.pausePlay.update(c.slideshow?e+"pause":e+"play");a.pausePlay.bind(s,function(b){b.preventDefault();if(d(this).hasClass(e+"pause")){a.pause();a.manualPause=true}else{a.play();a.manualPause=false}});o&&a.pausePlay.bind("click touchstart",function(a){a.preventDefault()})},update:function(b){"play"===b?a.pausePlay.removeClass(e+"pause").addClass(e+"play").text(c.playText):a.pausePlay.removeClass(e+"play").addClass(e+"pause").text(c.pauseText)}},touch:function(){function b(b){j=l?d-b.touches[0].pageY: d-b.touches[0].pageX;o=l?Math.abs(j)j||a.currentSlide===a.last&&0Number(new Date)-k&&20n/2)?a.flexAnimate(l, c.pauseOnAction):a.flexAnimate(a.currentSlide,c.pauseOnAction,!0)}h.removeEventListener("touchmove",b,!1);h.removeEventListener("touchend",g,!1);f=j=e=d=null}var d,e,f,n,j,k,o=!1;h.addEventListener("touchstart",function(j){a.animating?j.preventDefault():1===j.touches.length&&(a.pause(),n=l?a.h:a.w,k=Number(new Date),f=i&&m&&a.animatingTo===a.last?0:i&&m?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:i&&a.currentSlide===a.last?a.limit:i?(a.itemW+c.itemMargin)*a.move*a.currentSlide:m?(a.last-a.currentSlide+ a.cloneOffset)*n:(a.currentSlide+a.cloneOffset)*n,d=l?j.touches[0].pageY:j.touches[0].pageX,e=l?j.touches[0].pageX:j.touches[0].pageY,h.addEventListener("touchmove",b,!1),h.addEventListener("touchend",g,!1))},!1)},resize:function(){!a.animating&&a.is(":visible")&&(i||a.doMath(),p?f.smoothHeight():i?(a.slides.width(a.computedW),a.update(a.pagingCount),a.setProps()):l?(a.viewport.height(a.h),a.setProps(a.h,"setTotal")):(c.smoothHeight&&f.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW, "setTotal")))},smoothHeight:function(b){if(!l||p){var c=p?a:a.viewport;b?c.animate({height:a.slides.eq(a.animatingTo).height()},b):c.height(a.slides.eq(a.animatingTo).height())}},sync:function(b){var g=d(c.sync).data("flexslider"),e=a.animatingTo;switch(b){case "animate":g.flexAnimate(e,c.pauseOnAction,!1,!0);break;case "play":!g.playing&&!g.asNav&&g.play();break;case "pause":g.pause()}}};a.flexAnimate=function(b,g,q,h,k){if(!a.animating&&(a.canAdvance(b)||q)&&a.is(":visible")){if(r&&h)if(q=d(c.asNavFor).data("flexslider"), a.atEnd=0===b||b===a.count-1,q.flexAnimate(b,!0,!1,!0,k),a.direction=a.currentItema.w?2*c.itemMargin:c.itemMargin,b=(a.itemW+b)*a.move*a.animatingTo,b=b>a.limit&&1!==a.visible?a.limit:b):b= 0===a.currentSlide&&b===a.count-1&&c.animationLoop&&"next"!==a.direction?m?(a.count+a.cloneOffset)*n:0:a.currentSlide===a.last&&0===b&&c.animationLoop&&"prev"!==a.direction?m?0:(a.count+1)*n:m?(a.count-1-b+a.cloneOffset)*n:(b+a.cloneOffset)*n;a.setProps(b,"",c.animationSpeed);if(a.transitions){if(!c.animationLoop||!a.atEnd)a.animating=!1,a.currentSlide=a.animatingTo;a.container.unbind("webkitTransitionEnd transitionend");a.container.bind("webkitTransitionEnd transitionend",function(){a.wrapup(n)})}else a.container.animate(a.args, c.animationSpeed,c.easing,function(){a.wrapup(n)})}c.smoothHeight&&f.smoothHeight(c.animationSpeed)}};a.wrapup=function(b){!p&&!i&&(0===a.currentSlide&&a.animatingTo===a.last&&c.animationLoop?a.setProps(b,"jumpEnd"):a.currentSlide===a.last&&(0===a.animatingTo&&c.animationLoop)&&a.setProps(b,"jumpStart"));a.animating=!1;a.currentSlide=a.animatingTo;c.after(a)};a.animateSlides=function(){a.animating||a.flexAnimate(a.getTarget("next"))};a.pause=function(){clearInterval(a.animatedSlides);a.playing=!1; c.pausePlay&&f.pausePlay.update("play");a.syncExists&&f.sync("pause")};a.play=function(){a.animatedSlides=setInterval(a.animateSlides,c.slideshowSpeed);a.playing=!0;c.pausePlay&&f.pausePlay.update("pause");a.syncExists&&f.sync("play")};a.canAdvance=function(b){var d=r?a.pagingCount-1:a.last;return r&&0===a.currentItem&&b===a.pagingCount-1&&"next"!==a.direction?!1:b===a.currentSlide&&!r?!1:c.animationLoop?!0:a.atEnd&&0===a.currentSlide&&b===d&&"next"!==a.direction?!1:a.atEnd&&a.currentSlide===d&&0=== b&&"next"===a.direction?!1:!0};a.getTarget=function(b){a.direction=b;return"next"===b?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?a.last:a.currentSlide-1};a.setProps=function(b,d,e){var f=function(){var e=b?b:(a.itemW+c.itemMargin)*a.move*a.animatingTo;return-1*function(){if(i)return"setTouch"===d?b:m&&a.animatingTo===a.last?0:m?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:a.animatingTo===a.last?a.limit:e;switch(d){case "setTotal":return m?(a.count-1-a.currentSlide+a.cloneOffset)* b:(a.currentSlide+a.cloneOffset)*b;case "setTouch":return b;case "jumpEnd":return m?b:a.count*b;case "jumpStart":return m?a.count*b:b;default:return b}}()+"px"}();a.transitions&&(f=l?"translate3d(0,"+f+",0)":"translate3d("+f+",0,0)",e=void 0!==e?e/1E3+"s":"0s",a.container.css("-"+a.pfx+"-transition-duration",e));a.args[a.prop]=f;(a.transitions||void 0===e)&&a.container.css(a.args)};a.setup=function(b){if(p)a.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"=== b&&a.slides.eq(a.currentSlide).fadeIn(c.animationSpeed,c.easing),c.smoothHeight&&f.smoothHeight();else{var g,h;"init"===b&&(a.viewport=d('
    ').css({overflow:"hidden",position:"relative"}).appendTo(a).append(a.container),a.cloneCount=0,a.cloneOffset=0,m&&(h=d.makeArray(a.slides).reverse(),a.slides=d(h),a.container.empty().append(a.slides)));c.animationLoop&&!i&&(a.cloneCount=2,a.cloneOffset=1,"init"!==b&&a.container.find(".clone").remove(),a.container.append(a.slides.first().clone().addClass("clone")).prepend(a.slides.last().clone().addClass("clone"))); a.newSlides=d(c.selector,a);g=m?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+a.cloneOffset;l&&!i?(a.container.height(200*(a.count+a.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){a.newSlides.css({display:"block"});a.doMath();a.viewport.height(a.h);a.setProps(g*a.h,"init")},"init"===b?100:0)):(a.container.width(200*(a.count+a.cloneCount)+"%"),a.setProps(g*a.computedW,"init"),setTimeout(function(){a.doMath();a.newSlides.css({width:a.computedW,"float":"left", display:"block"});c.smoothHeight&&f.smoothHeight()},"init"===b?100:0))}i||a.slides.removeClass(e+"active-slide").eq(a.currentSlide).addClass(e+"active-slide")};a.doMath=function(){var b=a.slides.first(),d=c.itemMargin,e=c.minItems,f=c.maxItems;a.w=a.width();a.h=b.height();a.boxPadding=b.outerWidth()-b.width();i?(a.itemT=c.itemWidth+d,a.minW=e?e*a.itemT:a.w,a.maxW=f?f*a.itemT:a.w,a.itemW=a.minW>a.w?(a.w-d*e)/e:a.maxWa.w?a.w:c.itemWidth,a.visible=Math.floor(a.w/(a.itemW+ d)),a.move=0a.w?(a.itemW+2*d)*a.count-a.w-d:(a.itemW+d)*a.count-a.w):(a.itemW=a.w,a.pagingCount=a.count,a.last=a.count-1);a.computedW=a.itemW-a.boxPadding};a.update=function(b,d){a.doMath();i||(ba.controlNav.length)f.controlNav.update("add");else if("remove"===d&&!i||a.pagingCounta.last&&(a.currentSlide-=1,a.animatingTo-=1),f.controlNav.update("remove",a.last);c.directionNav&&f.directionNav.update()};a.addSlide=function(b,e){var f=d(b);a.count+=1;a.last=a.count-1;l&&m?void 0!==e?a.slides.eq(a.count-e).after(f):a.container.prepend(f):void 0!==e?a.slides.eq(e).before(f):a.container.append(f);a.update(e,"add");a.slides=d(c.selector+ ":not(.clone)",a);a.setup();c.added(a)};a.removeSlide=function(b){var e=isNaN(b)?a.slides.index(d(b)):b;a.count-=1;a.last=a.count-1;isNaN(b)?d(b,a.slides).remove():l&&m?a.slides.eq(a.last).remove():a.slides.eq(b).remove();a.doMath();a.update(e,"remove");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.removed(a)};f.init()};d.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0, slideshow:!0,slideshowSpeed:7E3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){}, removed:function(){}};d.fn.flexslider=function(h){h=h||{};if("object"===typeof h)return this.each(function(){var a=d(this),c=a.find(h.selector?h.selector:".slides > li");1===c.length?(c.fadeIn(400),h.start&&h.start(a)):void 0===a.data("flexslider")&&new d.flexslider(this,h)});var k=d(this).data("flexslider");switch(h){case "play":k.play();break;case "pause":k.pause();break;case "next":k.flexAnimate(k.getTarget("next"),!0);break;case "prev":case "previous":k.flexAnimate(k.getTarget("prev"),!0);break; default:"number"===typeof h&&k.flexAnimate(h,!0)}}})(jQuery); // source --> https://www.w-jinc.com/wp-content/themes/alyeska/framework/frontend/assets/js/roundabout.js /** * jQuery Roundabout - v2.4 * http://fredhq.com/projects/roundabout * * Moves list-items of enabled ordered and unordered lists long * a chosen path. Includes the default "lazySusan" path, that * moves items long a spinning turntable. * * Terms of Use // jQuery Roundabout * * Open source under the BSD license * * Copyright (c) 2011-2012, Fred LeBlanc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * - Neither the name of the author nor the names of its contributors * may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */(function(a){"use strict";var b,c,d;a.extend({roundaboutShapes:{def:"lazySusan",lazySusan:function(a,b,c){return{x:Math.sin(a+b),y:Math.sin(a+3*Math.PI/2+b)/8*c,z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+.5}}}});b={bearing:0,tilt:0,minZ:100,maxZ:280,minOpacity:.4,maxOpacity:1,minScale:.4,maxScale:1,duration:600,btnNext:null,btnNextCallback:function(){},btnPrev:null,btnPrevCallback:function(){},btnToggleAutoplay:null,btnStartAutoplay:null,btnStopAutoplay:null,easing:"swing",clickToFocus:!0,clickToFocusCallback:function(){},focusBearing:0,shape:"lazySusan",debug:!1,childSelector:"li",startingChild:null,reflect:!1,floatComparisonThreshold:.001,autoplay:!1,autoplayDuration:1e3,autoplayPauseOnHover:!1,autoplayCallback:function(){},autoplayInitialDelay:0,enableDrag:!1,dropDuration:600,dropEasing:"swing",dropAnimateTo:"nearest",dropCallback:function(){},dragAxis:"x",dragFactor:4,triggerFocusEvents:!0,triggerBlurEvents:!0,responsive:!1};c={autoplayInterval:null,autoplayIsRunning:!1,autoplayStartTimeout:null,animating:!1,childInFocus:-1,touchMoveStartPosition:null,stopAnimation:!1,lastAnimationStep:!1};d={init:function(e,f,g){var h,i=(new Date).getTime();e=typeof e=="object"?e:{};f=a.isFunction(f)?f:function(){};f=a.isFunction(e)?e:f;h=a.extend({},b,e,c);return this.each(function(){var b=a(this),c=b.children(h.childSelector).length,e=360/c,i=h.startingChild&&h.startingChild>c-1?c-1:h.startingChild,j=h.startingChild===null?h.bearing:360-i*e,k=b.css("position")!=="static"?b.css("position"):"relative";b.css({padding:0,position:k}).addClass("roundabout-holder").data("roundabout",a.extend({},h,{startingChild:i,bearing:j,oppositeOfFocusBearing:d.normalize.apply(null,[h.focusBearing-180]),dragBearing:j,period:e}));g?b.unbind(".roundabout").children(h.childSelector).unbind(".roundabout"):h.responsive&&a(window).bind("resize",function(){d.relayoutChildren.apply(b)});h.clickToFocus&&b.children(h.childSelector).each(function(c){a(this).bind("click.roundabout",function(){var e=d.getPlacement.apply(b,[c]);if(!d.isInFocus.apply(b,[e])){d.stopAnimation.apply(a(this));b.data("roundabout").animating||d.animateBearingToFocus.apply(b,[e,b.data("roundabout").clickToFocusCallback]);return!1}})});h.btnNext&&a(h.btnNext).bind("click.roundabout",function(){b.data("roundabout").animating||d.animateToNextChild.apply(b,[b.data("roundabout").btnNextCallback]);return!1});h.btnPrev&&a(h.btnPrev).bind("click.roundabout",function(){d.animateToPreviousChild.apply(b,[b.data("roundabout").btnPrevCallback]);return!1});h.btnToggleAutoplay&&a(h.btnToggleAutoplay).bind("click.roundabout",function(){d.toggleAutoplay.apply(b);return!1});h.btnStartAutoplay&&a(h.btnStartAutoplay).bind("click.roundabout",function(){d.startAutoplay.apply(b);return!1});h.btnStopAutoplay&&a(h.btnStopAutoplay).bind("click.roundabout",function(){d.stopAutoplay.apply(b);return!1});h.autoplayPauseOnHover&&b.bind("mouseenter.roundabout.autoplay",function(){d.stopAutoplay.apply(b,[!0])}).bind("mouseleave.roundabout.autoplay",function(){d.startAutoplay.apply(b)});if(h.enableDrag){a.isFunction(b.drag)?a.isFunction(b.drop)?b.drag(function(a,c){var e=b.data("roundabout"),f=e.dragAxis.toLowerCase()==="x"?"deltaX":"deltaY";d.stopAnimation.apply(b);d.setBearing.apply(b,[e.dragBearing+c[f]/e.dragFactor])}).drop(function(a){var c=b.data("roundabout"),e=d.getAnimateToMethod(c.dropAnimateTo);d.allowAnimation.apply(b);d[e].apply(b,[c.dropDuration,c.dropEasing,c.dropCallback]);c.dragBearing=c.period*d.getNearestChild.apply(b)}):h.debug&&alert("You do not have the drop plugin loaded."):h.debug&&alert("You do not have the drag plugin loaded.");b.each(function(){var b=a(this).get(0),c=a(this).data("roundabout"),e=c.dragAxis.toLowerCase()==="x"?"pageX":"pageY",f=d.getAnimateToMethod(c.dropAnimateTo);if(b.addEventListener){b.addEventListener("touchstart",function(a){c.touchMoveStartPosition=a.touches[0][e]},!1);b.addEventListener("touchmove",function(b){var f=(b.touches[0][e]-c.touchMoveStartPosition)/c.dragFactor;b.preventDefault();d.stopAnimation.apply(a(this));d.setBearing.apply(a(this),[c.dragBearing+f])},!1);b.addEventListener("touchend",function(b){b.preventDefault();d.allowAnimation.apply(a(this));f=d.getAnimateToMethod(c.dropAnimateTo);d[f].apply(a(this),[c.dropDuration,c.dropEasing,c.dropCallback]);c.dragBearing=c.period*d.getNearestChild.apply(a(this))},!1)}})}d.initChildren.apply(b,[f,g])})},initChildren:function(b,c){var e=a(this),f=e.data("roundabout");b=b||function(){};e.children(f.childSelector).each(function(b){var f,g,h,i=d.getPlacement.apply(e,[b]);if(c&&a(this).data("roundabout")){f=a(this).data("roundabout").startWidth;g=a(this).data("roundabout").startHeight;h=a(this).data("roundabout").startFontSize}a(this).addClass("roundabout-moveable-item").css("position","absolute");a(this).data("roundabout",{startWidth:f||a(this).width(),startHeight:g||a(this).height(),startFontSize:h||parseInt(a(this).css("font-size"),10),degrees:i,backDegrees:d.normalize.apply(null,[i-180]),childNumber:b,currentScale:1,parent:e})});d.updateChildren.apply(e);f.autoplay&&(f.autoplayStartTimeout=setTimeout(function(){d.startAutoplay.apply(e)},f.autoplayInitialDelay));e.trigger("ready");b.apply(e);return e},updateChildren:function(){return this.each(function(){var b=a(this),c=b.data("roundabout"),e=-1,f={bearing:c.bearing,tilt:c.tilt,stage:{width:Math.floor(a(this).width()*.9),height:Math.floor(a(this).height()*.9)},animating:c.animating,inFocus:c.childInFocus,focusBearingRadian:d.degToRad.apply(null,[c.focusBearing]),shape:a.roundaboutShapes[c.shape]||a.roundaboutShapes[a.roundaboutShapes.def]};f.midStage={width:f.stage.width/2,height:f.stage.height/2};f.nudge={width:f.midStage.width+f.stage.width*.05,height:f.midStage.height+f.stage.height*.05};f.zValues={min:c.minZ,max:c.maxZ,diff:c.maxZ-c.minZ};f.opacity={min:c.minOpacity,max:c.maxOpacity,diff:c.maxOpacity-c.minOpacity};f.scale={min:c.minScale,max:c.maxScale,diff:c.maxScale-c.minScale};b.children(c.childSelector).each(function(g){if(d.updateChild.apply(b,[a(this),f,g,function(){a(this).trigger("ready")}])&&(!f.animating||c.lastAnimationStep)){e=g;a(this).addClass("roundabout-in-focus")}else a(this).removeClass("roundabout-in-focus")});if(e!==f.inFocus){c.triggerBlurEvents&&b.children(c.childSelector).eq(f.inFocus).trigger("blur");c.childInFocus=e;c.triggerFocusEvents&&e!==-1&&b.children(c.childSelector).eq(e).trigger("focus")}b.trigger("childrenUpdated")})},updateChild:function(b,c,e,f){var g,h=this,i=a(b),j=i.data("roundabout"),k=[],l=d.degToRad.apply(null,[360-j.degrees+c.bearing]);f=f||function(){};l=d.normalizeRad.apply(null,[l]);g=c.shape(l,c.focusBearingRadian,c.tilt);g.scale=g.scale>1?1:g.scale;g.adjustedScale=(c.scale.min+c.scale.diff*g.scale).toFixed(4);g.width=(g.adjustedScale*j.startWidth).toFixed(4);g.height=(g.adjustedScale*j.startHeight).toFixed(4);i.css({left:(g.x*c.midStage.width+c.nudge.width-g.width/2).toFixed(0)+"px",top:(g.y*c.midStage.height+c.nudge.height-g.height/2).toFixed(0)+"px",width:g.width+"px",height:g.height+"px",opacity:(c.opacity.min+c.opacity.diff*g.scale).toFixed(2),zIndex:Math.round(c.zValues.min+c.zValues.diff*g.z),fontSize:(g.adjustedScale*j.startFontSize).toFixed(1)+"px"});j.currentScale=g.adjustedScale;if(h.data("roundabout").debug){k.push('
    ');k.push('Child '+e+"
    ");k.push("left: "+i.css("left")+"
    ");k.push("top: "+i.css("top")+"
    ");k.push("width: "+i.css("width")+"
    ");k.push("opacity: "+i.css("opacity")+"
    ");k.push("height: "+i.css("height")+"
    ");k.push("z-index: "+i.css("z-index")+"
    ");k.push("font-size: "+i.css("font-size")+"
    ");k.push("scale: "+i.data("roundabout").currentScale);k.push("
    ");i.html(k.join(""))}i.trigger("reposition");f.apply(h);return d.isInFocus.apply(h,[j.degrees])},setBearing:function(b,c){c=c||function(){};b=d.normalize.apply(null,[b]);this.each(function(){var c,e,f,g=a(this),h=g.data("roundabout"),i=h.bearing;h.bearing=b;g.trigger("bearingSet");d.updateChildren.apply(g);c=Math.abs(i-b);if(!h.animating||c>180)return;c=Math.abs(i-b);g.children(h.childSelector).each(function(c){var e;if(d.isChildBackDegreesBetween.apply(a(this),[b,i])){e=i>b?"Clockwise":"Counterclockwise";a(this).trigger("move"+e+"ThroughBack")}})});c.apply(this);return this},adjustBearing:function(b,c){c=c||function(){};if(b===0)return this;this.each(function(){d.setBearing.apply(a(this),[a(this).data("roundabout").bearing+b])});c.apply(this);return this},setTilt:function(b,c){c=c||function(){};this.each(function(){a(this).data("roundabout").tilt=b;d.updateChildren.apply(a(this))});c.apply(this);return this},adjustTilt:function(b,c){c=c||function(){};this.each(function(){d.setTilt.apply(a(this),[a(this).data("roundabout").tilt+b])});c.apply(this);return this},animateToBearing:function(b,c,e,f,g){var h=(new Date).getTime();g=g||function(){};if(a.isFunction(f)){g=f;f=null}else if(a.isFunction(e)){g=e;e=null}else if(a.isFunction(c)){g=c;c=null}this.each(function(){var i,j,k,l=a(this),m=l.data("roundabout"),n=c?c:m.duration,o=e?e:m.easing||"swing";f||(f={timerStart:h,start:m.bearing,totalTime:n});i=h-f.timerStart;if(m.stopAnimation){d.allowAnimation.apply(l);m.animating=!1;return}if(i=0&&(k=f.start+(b-f.start)*k);k=d.normalize.apply(null,[k]);m.dragBearing=k;d.setBearing.apply(l,[k,function(){setTimeout(function(){d.animateToBearing.apply(l,[b,n,o,f,g])},0)}])}else{m.lastAnimationStep=!0;b=d.normalize.apply(null,[b]);d.setBearing.apply(l,[b,function(){l.trigger("animationEnd")}]);m.animating=!1;m.lastAnimationStep=!1;m.dragBearing=b;g.apply(l)}});return this},animateToNearbyChild:function(b,c){var e=b[0],f=b[1],g=b[2]||function(){};if(a.isFunction(f)){g=f;f=null}else if(a.isFunction(e)){g=e;e=null}return this.each(function(){var b,h,i=a(this),j=i.data("roundabout"),k=j.reflect?j.bearing:j.bearing%360,l=i.children(j.childSelector).length;if(!j.animating)if(j.reflect&&c==="previous"||!j.reflect&&c==="next"){k=Math.abs(k)=Math.floor(h.lower)){l===2&&k===360?d.animateToDelta.apply(i,[-180,e,f,g]):d.animateBearingToFocus.apply(i,[h.lower,e,f,g]);break}}}else{k=Math.abs(k)=0;b-=1){h={lower:j.period*b,upper:j.period*(b+1)};h.upper=b===l-1?360:h.upper;if(k>=Math.floor(h.lower)&&k180?-(360-g):g;g!==0&&d.animateToDelta.apply(a(this),[g,c,e,f])})},stopAnimation:function(){return this.each(function(){a(this).data("roundabout").stopAnimation=!0})},allowAnimation:function(){return this.each(function(){a(this).data("roundabout").stopAnimation=!1})},startAutoplay:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");b=b||e.autoplayCallback||function(){};clearInterval(e.autoplayInterval);e.autoplayInterval=setInterval(function(){d.animateToNextChild.apply(c,[b])},e.autoplayDuration);e.autoplayIsRunning=!0;c.trigger("autoplayStart")})},stopAutoplay:function(b){return this.each(function(){clearInterval(a(this).data("roundabout").autoplayInterval);a(this).data("roundabout").autoplayInterval=null;a(this).data("roundabout").autoplayIsRunning=!1;b||a(this).unbind(".autoplay");a(this).trigger("autoplayStop")})},toggleAutoplay:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");b=b||e.autoplayCallback||function(){};d.isAutoplaying.apply(a(this))?d.stopAutoplay.apply(a(this),[b]):d.startAutoplay.apply(a(this),[b])})},isAutoplaying:function(){return this.data("roundabout").autoplayIsRunning},changeAutoplayDuration:function(b){return this.each(function(){var c=a(this),e=c.data("roundabout");e.autoplayDuration=b;if(d.isAutoplaying.apply(c)){d.stopAutoplay.apply(c);setTimeout(function(){d.startAutoplay.apply(c)},10)}})},normalize:function(a){var b=a%360;return b<0?360+b:b},normalizeRad:function(a){while(a<0)a+=Math.PI*2;while(a>Math.PI*2)a-=Math.PI*2;return a},isChildBackDegreesBetween:function(b,c){var d=a(this).data("roundabout").backDegrees;return b>c?d>=c&&d=b},getAnimateToMethod:function(a){a=a.toLowerCase();return a==="next"?"animateToNextChild":a==="previous"?"animateToPreviousChild":"animateToNearestChild"},relayoutChildren:function(){return this.each(function(){var b=a(this),c=a.extend({},b.data("roundabout"));c.startingChild=b.data("roundabout").childInFocus;d.init.apply(b,[c,null,!0])})},getNearestChild:function(){var b=a(this),c=b.data("roundabout"),d=b.children(c.childSelector).length;return c.reflect?Math.round(c.bearing/c.period)%d:(d-Math.round(c.bearing/c.period)%d)%d},degToRad:function(a){return d.normalize.apply(null,[a])*Math.PI/180},getPlacement:function(a){var b=this.data("roundabout");return b.reflect?b.period*a:360-b.period*a},isInFocus:function(a){var b,c=this,e=c.data("roundabout"),f=d.normalize.apply(null,[e.bearing]);a=d.normalize.apply(null,[a]);b=Math.abs(f-a);return b<=e.floatComparisonThreshold||b>=360-e.floatComparisonThreshold},getChildInFocus:function(){var b=a(this).data("roundabout");return b.childInFocus>-1?b.childInFocus:!1},compareVersions:function(a,b){var c,d=a.split(/\./i),e=b.split(/\./i),f=d.length>e.length?d.length:e.length;for(c=0;c<=f;c++){if(d[c]&&!e[c]&&parseInt(d[c],10)!==0)return 1;if(e[c]&&!d[c]&&parseInt(e[c],10)!==0)return-1;if(d[c]===e[c])continue;if(d[c]&&e[c])return parseInt(d[c],10)>parseInt(e[c],10)?1:-1}return 0}};a.fn.roundabout=function(b){if(d[b])return d[b].apply(this,Array.prototype.slice.call(arguments,1));if(typeof b=="object"||a.isFunction(b)||!b)return d.init.apply(this,arguments);a.error("Method "+b+" does not exist for jQuery.roundabout.")}})(jQuery); // source --> https://www.w-jinc.com/wp-content/themes/alyeska/assets/js/alyeska.min.js jQuery(document).ready(function(a){a("#main-menu .menu").superfish({autoArrows:false});a("ul.menu .no-click").find("a:first").click(function(){return false});a(".gallery").append('
    ');a(".gallery").each(function(){var c=a(this),b=c.attr("id");c.find(".gallery-item a").each(function(){if(this.href.match(/\.(jpe?g|png|bmp|gif|tiff?)$/i)){a(this).attr("rel","themeblvd_lightbox["+b+"]");a(this).addClass("image-button")}})});a('a[rel^="themeblvd_lightbox"], a[rel^="featured_themeblvd_lightbox"]').prettyPhoto({social_tools:false,deeplinking:false,overlay_gallery:false,show_title:false});a('a[rel^="themeblvd_lightbox"]').prepend('');a('a[rel^="themeblvd_lightbox"]').hover(function(){var b=a(this);b.find(".enlarge").stop(true,true).animate({opacity:1},100);b.find("img").stop(true,true).animate({opacity:0.6},100)},function(){var b=a(this);b.find(".enlarge").stop(true,true).animate({opacity:0},100);b.find("img").stop(true,true).animate({opacity:1},100)});a(".featured-image a").hover(function(){var b=a(this);b.find(".image-overlay-bg").stop(true,true).animate({opacity:0.6},300);b.find(".image-overlay-icon").stop(true,true).animate({opacity:1},300)},function(){var b=a(this);b.find(".image-overlay-bg").stop(true,true).animate({opacity:0},300);b.find(".image-overlay-icon").stop(true,true).animate({opacity:0},300)});a(".tb-tabs").each(function(){var b=a(this);b.find(".tab-content").hide();b.find(".tab-content:first").show()});a(".tb-tabs .tab-nav a").click(function(){var d=a(this),c=d.closest(".tb-tabs"),b=d.attr("href");c.find(".tab-nav li").removeClass("active");d.closest("li").addClass("active");c.find(".tab-content").hide();c.find(b).show();return false});a(".tb-toggle").each(function(){a(this).find(".toggle-content").hide()});a(".tb-toggle a.toggle-trigger").click(function(){var c=a(this),b=c.closest(".tb-toggle");if(c.hasClass("active")){b.find(".toggle-content").hide();c.removeClass("active")}else{b.find(".toggle-content").show();c.addClass("active")}return false});a(".tb-jump-menu").change(function(b){window.location.href=a(this).val()});a("#search-trigger").click(function(){return false});a("#search-popup-wrapper").each(function(){var i=10;var h=250;var d=500;var c=null;var f=false;var e=false;var b=a("#search-trigger",this);var g=a(".search-popup-outer",this).css("opacity",0);a([b.get(0),g.get(0)]).mouseover(function(){if(c){clearTimeout(c)}if(f||e){return}else{f=true;g.css({bottom:5,right:-12,display:"block"}).animate({bottom:"+="+i+"px",opacity:1,filter:""},h,"swing",function(){f=false;e=true})}return false}).mouseout(function(){if(c){clearTimeout(c)}c=setTimeout(function(){c=null;g.animate({bottom:"+="+i+"px",opacity:0,filter:""},h,"swing",function(){e=false;g.css("display","none")})},d);return false})});a("h1, h2, h3").each(function(){var b=a(this);b.has("a").addClass("has-shade").find("a").prepend('');b.not(".has-shade").prepend('')})}); // source --> https://www.w-jinc.com/wp-content/themes/alyeska/framework/frontend/assets/js/ios-orientationchange-fix.js /*! A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto. MIT License. */ (function(w){ // This fix addresses an iOS bug, so return early if the UA claims it's something else. if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){ return; } var doc = w.document; if( !doc.querySelector ){ return; } var meta = doc.querySelector( "meta[name=viewport]" ), initialContent = meta && meta.getAttribute( "content" ), disabledZoom = initialContent + ",maximum-scale=1", enabledZoom = initialContent + ",maximum-scale=10", enabled = true, x, y, z, aig; if( !meta ){ return; } function restoreZoom(){ meta.setAttribute( "content", enabledZoom ); enabled = true; } function disableZoom(){ meta.setAttribute( "content", disabledZoom ); enabled = false; } function checkTilt( e ){ aig = e.accelerationIncludingGravity; x = Math.abs( aig.x ); y = Math.abs( aig.y ); z = Math.abs( aig.z ); // If portrait orientation and in one of the danger zones if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){ if( enabled ){ disableZoom(); } } else if( !enabled ){ restoreZoom(); } } w.addEventListener( "orientationchange", restoreZoom, false ); w.addEventListener( "devicemotion", checkTilt, false ); })( this );